home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
-
- <LINK REL="stylesheet" TYPE="text/css" HREF="res:IDS_ACDialogs" > </LINK>
-
- <SCRIPT LANGUAGE="javascript" >
-
- //---------------------------------------------------------------------------------------
- // DoOnClick
- //---------------------------------------------------------------------------------------
- function DoOnClick()
- {
- var src = window.event.srcElement;
- var isLink = false;
- var toTarget;
- if (src.tagName == "a" || src.tagName == "A" )
- {
- isLink = true;
- toTarget = src.href;
- }
- else if(src.parentElement.tagName== "a" || src.parentElement.tagName == "A")
- {
- isLink = true;
- toTarget = src.parentElement.href;
- }
- if (isLink == true && toTarget != "")
- {
- if (! (window.external.InternetConnectionIsOpen()) )
- {
- window.external.DoUserSignOn("ClickToAdd", toTarget);
- }
- else
- {
- window.external.AOLGoToURL (toTarget);
- }
- window.event.returnValue = false;
- }
- }
-
- </SCRIPT>
-
- </HEAD>
-
- <BODY oncontextmenu="window.event.returnValue=false;" onclick="DoOnClick()"
- class="ctaBODY" id="ApptDialogBody" style="margin:0px;" scroll="no">
-
- <!-- Click to Add Field -->
- <DIV id = "ClickToAdd", name="ClickToAdd" style="background-color:white; height:100%;">
- The content of this DIV tag is replaced by the real content
- of the CTA event. The user never sees this text.
- The following link is a test link, which can be used
- to test that the signon-on-click logic is working,
- by single-stepping around the code that
- replaces the content of this DIV.
- <a href="http://www.aol.com">Test link.</a>
- </DIV>
-
- </BODY>
- </HTML>
-